{#include file="admin_header.htm"#}
<script>
function chk_form()
{
if (Form1.companyname.value=="")
	{
	alert("请输入公司名称")
	Form1.companyname.focus();
	return (false);
	}
if (Form1.nature.value=="")
	{
	alert("请选择企业性质！")
	Form1.nature.focus();
	return (false);
	}
if (Form1.trade.value=="")
	{
	alert("请选择所属行业！")
	Form1.trade.focus();
	return (false);
	}
if (Form1.area.value=="")
	{
	alert("请选择所在地区！")
	Form1.area.focus();
	return (false);
	}
if (Form1.registered.value=="")
	{
	alert("请填写注册资金！")
	Form1.registered.focus();
	return (false);
	}
if (Form1.contact.value=="")
	{
	alert("请输入联系人！")
	Form1.contact.focus();
	return (false);
	}
if (Form1.telephone.value=="")
	{
	alert("请输入联系电话！")
	Form1.telephone.focus();
	return (false);
	}
if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(Form1.email.value))==0)
{
alert("E_Mail格式有误!")
Form1.email.focus();
return (false);
}
if (Form1.address.value.length<5)
	{
	alert("请详细输入通讯地址！（5个字符以上！）")
	Form1.address.focus();
	return (false);
}
if (Form1.contents.value.length<20)
	{
	alert("请详细输入公司介绍！（20个字符以上！）")
	Form1.contents.focus();
	return (false);
}
return (true);
}
</script>
<div class="admin_main_nr_dbox">
<form id="Form1" name="Form1" method="post" action="?act=company_profile_save"  onsubmit="return chk_form();">
<table width="700" border="0" cellspacing="0" cellpadding="5"  >
  <tr>
    <td height="25" style="font-size:14px;">&nbsp;</td>
    <td width="80" style="font-size:14px;"><input name="submit" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/></td>
    <td width="80" style="font-size:14px;"><input name="submit2" type="button" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="返 回" onclick="Javascript:window.history.go(-1)"/></td>
  </tr>
</table>
<table width="700" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF"  >
<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">所属会员：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
{#$company_profile.user.username#}
		 </td>
      </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">营业执照：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" class="link_lan">
		  {#if $company_profile.license#}
		  <a href="{#$certificate_dir#}{#$company_profile.certificate_img#}" target="_blank" title="点击查看"> {#$company_profile.license#}</a>		 
		  {#else#}
		  未上传
		  {#/if#}
		 </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"> 企业认证状态：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <label><input name="audit"  type="radio" value="1" {#if $company_profile.audit eq "1"#}checked="checked"{#/if#} />认证通过</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 <label><input name="audit"  type="radio" value="2" {#if $company_profile.audit eq "2"#}checked="checked"{#/if#} />等待认证</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <label><input name="audit"  type="radio" value="3" {#if $company_profile.audit eq "3"#}checked="checked"{#/if#} />认证未通过</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		   <label><input name="audit"  type="radio" value="0" {#if $company_profile.audit eq "0"#}checked="checked"{#/if#} />未认证</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 </td>
        </tr>
  <tr>
    <td width="110" height="30" align="right" bgcolor="#FFFFFF"  style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>公司名称：</td>
    <td  style=" border-bottom:1px #CCCCCC dashed"><input name="companyname" type="text" class="article_text_f" id="companyname" maxlength="30"  style="width:350px;" value="{#$company_profile.companyname#}" /></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>企业性质：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="nature" id="nature"  style="width:210px; height:20px; font-size:12px;">
      <option value="">请选择企业性质：</option>
      
		  {#section name=nature loop=$nature#}
            
      <option value="{#$nature[nature].id#}" {#if $company_profile.nature eq $nature[nature].id#}selected="selected"{#/if#}>
      {#$nature[nature].categoryname#}
      </option>
      
			{#/section#}
            
    </select>    </td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold;">*</span>所属行业：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="trade" id="trade"  style="width:210px; height:20px; font-size:12px;">
      <option value="">请选择所属行业：</option>
                  
		  {#section name=trade loop=$trade#}            
            
      <option value="{#$trade[trade].id#}"  {#if $company_profile.trade eq $trade[trade].id#}selected="selected"{#/if#}>
      {#$trade[trade].categoryname#}
      </option>
                  
			{#/section#}            
          
    </select></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>所在地区：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="area" id="area"  style="width:210px; height:20px; font-size:12px;">
      <option value="">请选择所在地区：</option>
       
		  {#section name=area loop=$area#}
            
      <option value="{#$area[area].id#}"  {#if $company_profile.area eq $area[area].id#}selected="selected"{#/if#}>
      {#$area[area].categoryname#}
      </option>
      
			{#/section#}
          
    </select></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>公司规模：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="scale" id="scale"  style="width:210px; height:20px; font-size:12px;">
      
		  {#section name=scale loop=$scale#}
            
      <option value="{#$scale[scale].id#}" {#if $company_profile.scale eq $scale[scale].id#}selected="selected"{#/if#}>
      {#$scale[scale].categoryname#}
      </option>
      
			{#/section#}
          
    </select></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>注册资金：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="registered" type="text" class="article_text_f" id="registered" maxlength="20" value="{#$company_profile.registered#}" style="width:80px;"/>
      万
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <label>
        <input name="currency" type="radio" value="人民币"  {#if $company_profile.currency eq '' || $company_profile.currency eq "人民币"#} checked="checked"{#/if#} />
        人民币</label>
      &nbsp;&nbsp;&nbsp;
      <label>
        <input type="radio" name="currency" value="美元" {#if $company_profile.currency eq "美元"#}s checked="checked"{#/if#}/>
        美元</label>    </td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>联 系 人：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="contact" type="text" class="article_text_f" id="contact" maxlength="25" value="{#$company_profile.contact#}"/></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>联系电话：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="telephone" type="text" class="article_text_f" id="telephone" maxlength="25" value="{#$company_profile.telephone#}"/></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>联系邮箱：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="email" type="text" class="article_text_f" id="email" maxlength="25" value="{#$company_profile.email#}"/></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"style=" border-bottom:1px #CCCCCC dashed">公司网址：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="website" type="text" class="article_text_f" id="website" maxlength="80" value="{#$company_profile.website#}"/></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>通讯地址：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="address" type="text" class="article_text_f" id="address" maxlength="80"  style="width:447px;" value="{#$company_profile.address#}"/></td>
  </tr>
  <tr>
    <td align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 公司介绍：</td>
    <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><textarea name="contents" class="company_mb_textarea" id="introduction" style="width:450px; height:150px;"onpropertychange="if(this.value.length&gt;2000){this.value=this.value.slice(0,2000)}">{#$company_profile_contents.contents#}</textarea>
        <br />
        <div style="line-height:30px; height:30px;"> <span style="color:#333333">请将字数控制在2000字以内进行填写</span></div></td>
  </tr> <tr>
            <td height="30" align="right" bgcolor="#FFFFFF"  >&nbsp;</td>
            <td height="120" bgcolor="#FFFFFF"  ><span style="font-size:14px;">
              <input type="hidden" name="companyuid"  value="{#$company_profile.uid#}" />
			  <input type="hidden" name="url"  value="{#$url#}" />
              <input name="submit3" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input name="submit22" type="button" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="返 回" onclick="window.location.href='{#$url#}'"/>
            </span></td>
          </tr>
  </table>
  </form>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>